home *** CD-ROM | disk | FTP | other *** search
- <?xml version='1.0' encoding='ISO-8859-1' ?>
- <activescript language="javascript">
- <item macroname="SCRIPT_ReomveGarbageFiles" />
- <code>
- <![CDATA[
- function SCRIPT_ReomveGarbageFiles()
- {
- var sBeVertical =host.template.evalMacro("WFT_BE_VERTICAL_FLASHHELP");
- var fso = new ActiveXObject("Scripting.FileSystemObject");
- var strFilePath;
- var strFileDirBase = host.template.evalMacro("System.ResultFolderName");
- if(sBeVertical == "true")
- {
- strFilePath = strFileDirBase + host.template.evalMacro("WFT_STARTFS_PAGE");
- if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
- strFilePath = strFileDirBase + host.template.evalMacro("WFT_BOTTOM_PAGE");
- if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
- strFilePath = strFileDirBase + host.template.evalMacro("WFT_CONTENTFS_PAGE");
- if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
- strFilePath = strFileDirBase + host.template.evalMacro("WILDFIRE_TEMPLATE.pane.homepage");
- if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
- }
- else
- {
- strFilePath = strFileDirBase + host.template.evalMacro("WFT_VERTICAL_STARTFS_PAGE");
- if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
- strFilePath = strFileDirBase + host.template.evalMacro("WFT_VERTICAL_BOTTOM_PAGE");
- if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
- strFilePath = strFileDirBase + host.template.evalMacro("WFT_VERTICAL_CONTENTFS_PAGE");
- if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
- strFilePath = strFileDirBase + host.template.evalMacro("WILDFIRE_TEMPLATE.vertical_pane.homepage");
- if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
- }
- strFilePath = strFileDirBase + host.template.evalMacro("WILDFIRE_TOPIC_TEMPLATE");
- if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath );
- return "";
- }
- ]]>
- </code>
- </activescript>
-